#include "dummy_node.h"
#include "cpp-gen/FormalParser.h"
#include "utils.h"

namespace cyclone::parser
{

DummyNode::DummyNode(ParserRuleContext *pNode) : ParserRuleContext(pNode, 0),type("Identifier")
{
    pNode->addChild(this);
}

bool DummyNode::isDummyNode(ParserRuleContext *node)
{
    return node->getContextId() == DummyNode::dummyNodeContentId();
}

ssize_t DummyNode::dummyNodeContentId()
{
    return INVALID_INDEX - 3;
}

size_t DummyNode::getContextId() const
{
    return  dummyNodeContentId();
}

std::string DummyNode::toStringTree(bool pretty)
{
    return dummyValue;
}

std::string DummyNode::toString()
{
    return dummyValue;
}

std::string DummyNode::toStringTree(antlr4::Parser *parser, bool pretty)
{
    return dummyValue;
}

antlrcpp::Any DummyNode::accept(antlr4::tree::ParseTreeVisitor *visitor)
{
    return false;
}

std::string DummyNode::getText()
{
    return dummyValue;
}

antlr4::misc::Interval DummyNode::getSourceInterval()
{
    return antlr4::misc::Interval(static_cast<ssize_t>(0), 0);
}

}
